package com.patent.common;

public enum ResultCode {

	success("0", "响应成功"),

    paramError("1", "参数错误"),
	
	otherError("-1","系统异常"),

	repeatError("2","数据重复异常"),

	alreadySendCode("3","一分钟之内已经发送过验证码了"),

	sendFailCode("4","发送短信失败"),

	varifyFailCode("5","验证码错误"),

	invalidCode("6","验证码过期"),

	dataNotMatchCode("7","该数据不属于该用户"),

	invoiceAmountNo("8","发票额度大于拥有的额度"),

	invoiceAmountZero("9", "可用的发票额度为0"),

	invoiceStatuError("10","当前状态不支持取消"),

	invoiceAmountNotThanZero("11", "发票额度需大于0"),

	haveAdd("12", "您已添加该专利"),

	loginError("99","请求接口的userMobile未注册");
	
	private String code;
	
	private String message;
	
	private ResultCode(String code) {
        this.code = code;
    }

    private ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return code;
    }

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
